import request from '@/utils/request'

// 查询字段集列表
export function customFieldSetList(query) {
  return request({
    url: '/custom/customFieldSet/list',
    method: 'get',
    params: query
  })
}

// 添加字段集
export function customFieldSetAdd(data) {
  return request({
    url: '/custom/customFieldSet/add',
    method: 'POST',
    data: data
  })
}

// 编辑字段集
export function customFieldSetEdit(data) {
  return request({
    url: '/custom/customFieldSet/edit',
    method: 'POST',
    data: data
  })
}

// 删除字段集
export function customFieldSetBatch(data) {
  return request({
    url: '/custom/customFieldSet/delBatch',
    method: 'POST',
    data: data
  })
}




// 查询自定义字段集列表
export function customFieldList(query) {
  return request({
    url: '/custom/customField/list',
    method: 'get',
    params: query
  })
}

// 添加自定义字段集
export function customFieldAdd(data) {
  return request({
    url: '/custom/customField/add',
    method: 'POST',
    data: data
  })
}

// 编辑自定义字段集
export function customFieldEdit(data) {
  return request({
    url: '/custom/customField/edit',
    method: 'POST',
    data: data
  })
}

// 删除自定义字段集
export function customFieldBatch(data) {
  return request({
    url: '/custom/customField/delBatch',
    method: 'POST',
    data: data
  })
}
// 禁用启用自定义字段集
export function customFieldEditState(data) {
  return request({
    url: '/custom/customField/editState',
    method: 'POST',
    data: data
  })
}
// 详情查询
export function customFieldGet(query) {
  return request({
    url: '/custom/customField/get',
    method: 'get',
    params: query
  })
}

// 字段集列表
export function customFieldSetListsType(query) {
  return request({
    url: '/custom/customFieldSet/lists',
    method: 'get',
    params: query
  })
}

//使用范围
export function getDataList(query) {
  return request({
    url: '/custom/customField/getDataList',
    method: 'get',
    params: query
  })
}

//查询自定义：下拉值字段

export function selectCustom(query) {
  return request({
    url: '/system/dict/type/selectCustom',
    method: 'get',
    params: query
  })
}

//查询等级
export function getLevel(query) {
  return request({
    url: '/system/dict/type/getLevel',
    method: 'get',
    params: query
  })
}